package com.andong.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 管理员信息表
 * @TableName Log
 */
@TableName(value = "log")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Log implements Serializable {
    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * type
     */
    private String type;
    /**
     * 操作耗时
     */
    private Integer time;
    /**
     * 请求地址
     */
    private String url;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}